package com.app.couponsharelife.ui.main.nativelife.activity
import android.widget.TextView
import com.app.couponsharelife.R
import com.app.couponsharelife.base.BaseActivity
import com.app.couponsharelife.utils.AppUtils
import kotlinx.android.synthetic.main.activity_shop_goodsdetails.*
import kotlinx.android.synthetic.main.base_title_white.*

/**
 *Created by xct on 2019/3/5
 *Description:本地生活店铺商品详情页面
 */
class ShopGoodsDetailsActivity:BaseActivity() {
    override val viewLayoutId: Int
        get() = R.layout.activity_shop_goodsdetails

    override fun initViews() {
        AppUtils.initImmersionBar(this,true)
        basetitle_title.text="商品详情"
        basetitle_llclose.setOnClickListener { finish() }
        shopGoodsdetails_tvLjqg.setOnClickListener { setText() }
        //setText()
    }
    private fun setText(){
        for (i in 0 until 10){
            val textView=TextView(this)
            textView.setTextColor(resources.getColor(R.color.black))
            textView.setPadding(0,5,0,0)
            textView.text="·疯狂烤翅 x$i"
            shopGoodsdetails_llSpxqBq.addView(textView)
        }
    }
    override fun onDestroy() {
        super.onDestroy()
        AppUtils.destroyImmersionBar(this)
    }
}